package com.gzsxy.esjy.filter;

import io.netty.handler.codec.http.FullHttpResponse;

import java.util.HashMap;
import java.util.Map;

/**
 * 过滤器结果
 * @author zhangxiaolong
 * @date 2022/7/6 9:36
 */
public class FilterResult {

	private boolean isContinue=true ;
	
	private FullHttpResponse response ;
	
	/**
	 * 用户名
	 */
	private String remoteUser ;
	
	/**
	 * 额外附加参数
	 */
	private Map<String,Object> exParams ;

	public FilterResult() {
		exParams = new HashMap<String,Object>(2) ;
	}

	public boolean isContinue() {
		return isContinue;
	}

	public void setContinue(boolean isContinue) {
		this.isContinue = isContinue;
	}

	public FullHttpResponse getResponse() {
		return response;
	}

	public void setResponse(FullHttpResponse response) {
		this.response = response;
	}

	public Map<String,Object> getExParams() {
		return exParams;
	}

	public void addParams(String key,Object value) {
		exParams.put(key, value);
	}

	public String getRemoteUser() {
		return remoteUser;
	}

	public void setRemoteUser(String remoteUser) {
		this.remoteUser = remoteUser;
	}
	
	
}
